package com.charlotte.study.gupao.interpreter.calculate.v1;

/**
 * @author junjie.ding
 * @date 2020/3/23
 */
public class NumberArithmeticInterpreter implements IArithmeticInterpreter {

    private int value;

    public NumberArithmeticInterpreter(int value) {
        this.value = value;
    }

    @Override
    public int interpret() {
        return this.value;
    }

    @Override
    public String toString() {
        return value + "";
    }
}
